#!/bin/sh


getdir(){
cat $1  | grep -v ^"#" | grep $2 | awk '{print $NF}'
}

while [ $1 ];do
gzmain=`getdir $1 main`
gzssl=`getdir $1 ssl`
gzcifs=`getdir $1 cifs`
python lazed.py main $gzmain |tee $gzmain/lazmain.output
python lazed.py ssl $gzssl |tee $gzssl/lazssl.output
python lazed.py cifs $gzcifs |tee $gzcifs/lazcifs.output
shift
done
